import typing

from PySide6 import QtGui
from PySide6.QtWidgets import QComboBox, QWidget


class WheelIgnoreComboBox(QComboBox):
    '''
    类说明：
        没有滚轮事件的 Combox
    '''
    def __init__(self, parent: typing.Optional[QWidget] = None) -> None:
        super().__init__(parent=parent)
    
    def wheelEvent(self, e: QtGui.QWheelEvent) -> None:
        # return super().wheelEvent(e)
        e.ignore()
        pass
